package com.studio5704website.core.user;

import com.studio5704website.application.data.RoleWithToken;

import java.util.Optional;

/**
 * @author Gao
 */
public interface RoleWithTokenService {
    /**
     * @param id
     * @return 用于Spring Security
     */
    Optional<RoleWithToken> getRoleWithToken(String id);

    boolean setRoleWithToken(RoleWithToken roleWithToken);

    void deleteLoginRole(String id);
}
